package com.cyf.db.mapper;

import com.cyf.db.bean.NpsManageAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * nps中的收费员信息
 * Created by hfy on 2017/6/19.
 */

public interface NpsManageAccountMapper {

    @Select("select * from local_manageaccount where id = #{id}")
    NpsManageAccount getById(@Param("id") Integer id);

    @Update("update local_manageaccount set version = #{account.version} where id = #{account.id}")
    void updateVersion(@Param("account") NpsManageAccount npsManageAccount);
}
